<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
        <% String ctx = request.getContextPath();
   request.setAttribute("ctx", ctx);
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>我要留言</title>
<meta content="我要留言" name="description" />
<meta content="我要留言" name="keywords" />
<meta content="all" name="robots" />
<link href="${ctx}/css/skin/style/style.css" type="text/css" rel="stylesheet" />
<link href="${ctx}/css/skin/style/common.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="${ctx}/js/common.js"></script>
<script type="text/javascript" src="${ctx}/js/regMessage.js"></script>
<script src="${ctx}/js/jquery-1.3.2.min.js"></script>
<script type="text/javascript">
	function refresh() {
		var img = document.getElementById("checkCodeImg");
		var now = new Date();
		img.src = "${ctx}/pages/qiantai/message/Validate.jsp?code=" + now.getTime();
	}
</script>
</head>
<body>
${ok}
		<div class="crumbs">首页 &gt; 我要留言</div>
		<div class="page">
            <div class="maintitle">
                <p>发送咨询</p><span>&nbsp;</span>
            </div>
            <div class="inquiry">
            	 <form name="theForm" id="theForm" method="post">
                    					
                     <p>请您填写咨询信息</p>
                    <ul>
                    <li><p><font color="#FF0000">*</font>主题:</p>
                    <span class="msgbase">
                        <input type="text" name="motive" style="width:250px;" id="motive" />
                    </span>
              
                        <span class="msg" id="subMotive" style="COLOR: #ff0000"></span>
                    
                   </li>
                    <li><p><font color="#FF0000">*</font>内容:</p>
                    <span class="msgbase">
                        <textarea name="content" cols="60" rows="8" id="content"></textarea>
                    </span>
                        <span class="msg" id="contentMsg" style="COLOR: #ff0000;clear:both; width:500px;"></span>
                    </li>
                    </ul>
                    <span class="clear"></span>
                    <p>请您填写基本信息</p>
                    <ul>
                    <li><p><font color="#FF0000">*</font>您的单位名称:</p>
                            <span class="msgbase">
                                <input name="unit" type="text" id="unit" size="30" />
                            </span>
                            
                                <span class="msg" id="companyNameMsg" style="COLOR: #ff0000"></span>
                            
                       </li>
                    <li><p><font color="#FF0000">*</font>您的姓名:</p><span>
                            <span class="msgbase">
                                <input name="userName" type="text" id="userName" size="30" />
                            </span>
                            
                                <span class="msg" id="nameMsg" style="COLOR: #ff0000"></span>
                            </span>
                    </li>
                    <li><p><font color="#FF0000">*</font>电子邮箱:</p>
                            <span class="msgbase">
                                <input name="email" type="text" id="email" size="30" />
                            </span>
                            
                                <span id="emailMsg" class="msg" style="COLOR: #ff0000"></span>
                           
                        </li>
                    <li><p><font color="#FF0000">*</font>联系电话:</p>
                            <span class="msgbase">
                                <input name="phoneNumber" type="text" id="phoneNumber" size="30" />
                            </span>
                            
                                <span class="msg" id="telMsg" style="COLOR: #ff0000"></span>
                            
                       </li>
                    <li><p>您的联系地址:</p><span><span>
                    <input name="address" type="text" value="" id="address" size="60" /></span></span>
                    </li>
                    <li><p><font color="#FF0000">*</font>验证码:</p>
                            <span class="msgbase">
                                <input style="WIDTH: 98px; HEIGHT: 20px; color: #CCC" onfocus="this.value=''"
				  				type="text" maxlength="4" name="randa" id="userrand" value="请输入验证码" />
								<img src="${ctx}/pages/qiantai/message/Validate.jsp" id="checkCodeImg" /> 
								<a href="#" onClick="javascript: refresh();">看不清,换一张</a>
                            </span>
                            <span class="msg" id="code_notice" style="COLOR: #ff0000;clear:both; width:500px;"></span>
                            
                        </li>
                    <li>
                        <p></p><span>
                        <input name="button" value="发送" type="button" onclick="javascript:return submited('${ctx}');"/>
                        <input name="reset" value="重填" type="reset" />
                        </span>
                    </li>
                    </ul>
              		</form>
                    <div class="clear"></div>
            </div>  
        </div>
</body>
</html>
